<template>
    <a-table :columns="columns" :data-source="data" :pagination="false">

    </a-table>
</template>

<script>
export default {
    name: "apiTable",
    props:{
        data:{
            type:Array,
            default(){
                return[]
            },
        }
    },
    data(){
        return{
            columns:[
                {
                    title: "参数",
                    dataIndex: "name",
                    width:200,
                    key: "name",
                },
                {
                    title: "说明",
                    dataIndex: "description",
                    key: "description",
                },

                {
                    title: "类型",
                    dataIndex: "type",
                    key: "type",
                    width:100,
                },
                {
                    title: "默认值",
                    dataIndex: "default",
                    width:100,
                    key: "default",
                },
            ]
        }
    },
}
</script>

<style scoped>

</style>